import u from "../utils";
import { EXCEL } from "../constants";

const _api = u.api(EXCEL);

export default {
    loadFormula : (pageid) => _api('queryFormula', { data: {pageid}, type: 'get' }),
    queryFormulaById :(id) => _api(`queryFormulaById`, { data: {id}, type: 'get' }),
    saveFormula :(params) => _api(`savePageFormula`, { data: {...params}, type: 'post' }),
    deleteFormula :(params) => _api(`deletePageFormula`, { data: {...params}, type: 'post' }),
};
